<style rel="stylesheet/scss" lang="scss" scoped>
.mid {
    line-height: 140px;
}
</style>
<template>
<div class="app-container calendar-list-container">

</div>
</template>
<script>
import {
  mapGetters
} from 'vuex';
import * as baseApi from '@/api/common/index'
import * as prodApi from '@/api/product/index'
export default {
  name: 'user',
  components: {
    // 'depart-selector': () =>
    //   import ('./components/departSelector')
  },
  data() {
    return {
      filter: {
        options: {}
      },
      productCategory: []
    }
  },
  created() {
    this.getDict()
    this.getPdsConfCategoryTree()
  },
  computed: {
    ...mapGetters([
      'elements',
      'language'
    ])
  },
  methods: {
    showMenu() {
      console.log('showMenu');
    },
    // 获取字典选项
    getDict() {
      const codes = 'prod_file_sales_area,prod_file_pro_status,prod_file_biz_model,prod_file_market_pos'
      baseApi.getTypesValue(codes).then(res => {
        let arr = codes.split(",")
        this.filter.options = res.data
      })
    },
    getPdsConfCategoryTree() {
      prodApi.getPdsConfCategoryTree().then(res => {
        console.log('getPdsConfCategoryTree', res);
        this.productCategory = res.data
      })
    },
  }
}
</script>
